#ifndef TASK_APP_LOGIC_H
#define TASK_APP_LOGIC_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"

#include "../LOG.h"
#include "../Product_Config.h"

#include "../wifi/my_wifi.h"

#include "../my_driver/nvs_driver.h"

#include "../mode_Config/mode_status_handle.h" //子设备状态
#include "../mode_Config/mode_key_handle.h" //按键功能处理
#include "../mode_Config/mode_light_length_config.h" //灯珠数据长度
#include "../mode_Config/mode_brighness_config.h" //灯珠亮度
#include "../mode_Config/cw_brighness_config.h" //cw亮度调节
#include "../mode_Config/net_light_config.h" 
#include "../key/task_sensor_dect.h" //按键相关逻辑
#include "app_logic_handle.h"

typedef struct 
{
    EM_SYS_SSP main_ssp; //保存当前状态
    u8 brighness_level; //灯光亮度
    EM_MICRO_SSP spectral_mode; //麦克风子模式
    u8 micro_senst; //麦克风灵敏度
    EM_SCENE_SSP scene_mode; //场景模式
    u8 scene_senet; //场景模式灵敏度
    u8 custom_ssp;  //场景模式子模式
    PART_INFO_T part_info; //分段模式
    CW_BRIGHNESS cw_date_config; //CW模式相关
}app_status_info_t;

void task_app_logic_init();
#endif